#include "libAcoustX/core/result/SolveResult_Base.h"

ax::res::Base::Base()
{
	mMinResValue = -DBL_MAX;
	mMaxResValue = DBL_MAX;
}

ax::res::Base::~Base()
{
}

void ax::res::Base::setResData(std::shared_ptr<darr::DimsArray<double>> res_data)
{
	mResData = res_data;
}

std::shared_ptr<darr::DimsArray<double>> ax::res::Base::getResData() const
{
	return mResData;
}

void ax::res::Base::setBathyData(const std::vector<short>& bathy_data)
{
	mBathyData = bathy_data;
}

std::vector<short> ax::res::Base::getBathyData() const
{
	return mBathyData;
}

std::vector<double> ax::res::Base::getRangeData() const
{
	std::vector<double> result;
	if (mResData) {
		result = mResData->dimensionScale(DIM_RANGE_NAME);
	}
	return result;
}

std::vector<double> ax::res::Base::getDepthData() const
{
	std::vector<double> result;
	if (mResData) {
		result = mResData->dimensionScale(DIM_DEPTH_NAME);
	}
	return result;
}

void ax::res::Base::setMinResValue(double min_val)
{
	mMinResValue = min_val;
}

double ax::res::Base::getMinResValue() const
{
	return mMinResValue;
}

void ax::res::Base::setMaxResValue(double max_val)
{
	mMaxResValue = max_val;
}

double ax::res::Base::getMaxResValue() const
{
	return mMaxResValue;
}
